package com.kapcb.mvc.runner;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.EventListener;

/**
 * <a>Title: BaseApplicationShutdownHook </a>
 * <a>Author: Kapcb <a>
 * <a>Description: BaseApplicationShutdownHook <a>
 *
 * @author Kapcb
 * @version 1.0
 * @date 2024/4/21 13:03
 * @since 1.0
 */
public abstract class BaseApplicationShutdownHook {

    @EventListener(classes = {ContextClosedEvent.class})
    public abstract void applicationContextClosed(ApplicationEvent applicationEvent);

}
